import request from '@/utils/request'

export function purchaseGroup_index(params) {
  return request({
    url: '/purchaseGroup/index',
    method: 'get',
    params
  })
}

export function purchaseGroup_add(data) {
  return request({
    url: '/purchaseGroup/add',
    method: 'post',
    data:data
  })
}

export function purchaseGroup_edit(data) {
  return request({
    url: '/purchaseGroup/edit',
    method: 'post',
    data:data
  })
}

export function purchaseGroup_delete(data) {
  return request({
    url: '/purchaseGroup/delete',
    method: 'post',
    data:data
  })
}

export function purchaseGroup_confirmDelete(data) {
  return request({
    url: '/purchaseGroup/confirmDelete',
    method: 'post',
    data:data
  })
}

export function purchaseGroup_bindUsers(params) {
  return request({
    url: '/purchaseGroup/bindUsers',
    method: 'get',
    params
  })
}

export function purchaseGroup_unbindUsers(params) {
  return request({
    url: '/purchaseGroup/unbindUsers',
    method: 'get',
    params
  })
}

export function purchaseGroup_bind(data) {
  return request({
    url: '/purchaseGroup/bind',
    method: 'post',
    data:data
  })
}

export function purchaseGroup_unbind(data) {
  return request({
    url: '/purchaseGroup/unbind',
    method: 'post',
    data:data
  })
}
